package com.example.interfaces.dto;

import java.math.BigDecimal;
import com.example.infrastructure.excel.ExcelExportable;
import com.example.infrastructure.excel.ExcelImportable;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 医生表 DTO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@Schema(name = "DoctorsDTO", description = "医生表DTO")
public class DoctorsDTO implements ExcelExportable, ExcelImportable {

    @Schema(description = "科室ID")
    @ExcelProperty("科室ID")
    @NotNull(message = "科室ID不能为空")
    private Long deptId;
    
    @Schema(description = "医生姓名")
    @ExcelProperty("医生姓名")
    @NotBlank(message = "医生姓名不能为空")
    private String doctorName;
    
    @Schema(description = "医生编号")
    @ExcelProperty("医生编号")
    @NotBlank(message = "医生编号不能为空")
    private String doctorCode;
    
    @Schema(description = "职称")
    @ExcelProperty("职称")
    @NotBlank(message = "职称不能为空")
    private String title;
    
    @Schema(description = "专长")
    @ExcelProperty("专长")
    @NotBlank(message = "专长不能为空")
    private String specialty;
    
    @Schema(description = "医生简介")
    @ExcelProperty("医生简介")
    @NotBlank(message = "医生简介不能为空")
    private String introduction;
    
    @Schema(description = "照片URL")
    @ExcelProperty("照片URL")
    @NotBlank(message = "照片URL不能为空")
    private String photoUrl;
    
    @Schema(description = "问诊费用")
    @ExcelProperty("问诊费用")
    private BigDecimal consultationFee;
    
    @Schema(description = "从业年限")
    @ExcelProperty("从业年限")
    @NotNull(message = "从业年限不能为空")
    private Integer yearsExperience;
    
    @Schema(description = "学历")
    @ExcelProperty("学历")
    @NotBlank(message = "学历不能为空")
    private String education;
    
    @Schema(description = "所属医院")
    @ExcelProperty("所属医院")
    @NotBlank(message = "所属医院不能为空")
    private String hospital;
    
    @Schema(description = "状态：1正常，0禁用")
    @ExcelProperty("状态：1正常，0禁用")
    private Byte status;
    
    @Schema(description = "租户编号")
    @ExcelProperty("租户编号")
    @NotNull(message = "租户编号不能为空")
    private Long tenantId;
    
}
